package cn.trs.common.enums;

import cn.trs.common.annotation.EnumName;
import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 用户状态枚举
 *
 * @author jianqiang.hao
 */
public enum UserStatusEnum {

    // 正常用户
    NORMAL(0, "已注册"),
    // 匿名用户
    DELETED(1, "已删除"),
    APPLYING(2, "正在申请"),
    PASSED(3, "已通过"),
    NO_PASS(4, "未通过")
    ;

    @EnumValue
    private final Integer code;

    @EnumName
    private final String desc;

    UserStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
